<template>
  <div class="eventAdd">
    <el-dialog
        title="新增事件"
        :visible.sync="eventAddDialog"
        width="30%"
        :before-close="handleClose">
      <div  v-show="showEvent" class="addEvents">
        <addEvents></addEvents>
      </div>
      <span slot="footer" class="dialog-footer">
        <el-button @click="cancel">取 消</el-button>
        <el-button type="primary" @click="onSubmit">确 定</el-button>
      </span>
    </el-dialog>
  </div>
</template>

<script>
  import addEvents from './addEvents/index'
  export default {
    props: {
      eventAddDialog: {
        type: Boolean,
        default: false
      }
    },
    data() {
      return {}
    },
    created() {
    },
    methods: {
      handleClose(){

      },
      onSubmit(){
        this.$emit('setHidden', false)
      },
      cancel(){
        this.$emit('setHidden', false)
      }
    },
    computed: {},
    components: { addEvents }
  }
</script>

<style>
</style>
